package com.gxuwz.easyschool.fragment;

import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;

import com.gxuwz.easyschool.R;
import com.gxuwz.easyschool.adapter.MessageAdapter;

public class MessageFragment extends Fragment {
    private ListView message_list;

    public MessageFragment getInstance() {
        MessageFragment messageFragment = new MessageFragment();
        return messageFragment;
    }

    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.message_fragement, container, false);
        message_list = view.findViewById(R.id.message_list);
        MessageAdapter messageAdapter = new MessageAdapter(getActivity());
        message_list.setAdapter(messageAdapter);
        return view;
    }

    @Override
    public void onPause() {
        super.onPause();
    }
}
